# @Time    :2025/3/22 21:37

from random import randint

#
# """
# match ...case
# 给定月份，输出对应的月有多少天
# """
#
# month = randint(1, 13)
#
# print(f"输入的月份:{month}月")
# match month:
#     case 1 | 3 | 5 | 7 | 8 | 10 | 12:
#         print(f"当前月{month}月,有31天")
#     case 2:
#         print(f"当前月{month}月，有28，29天")
#     case 4 | 6 | 9 | 11:
#         print(f"当前月{month}月，有30天")
#     case _:
#         print(f"瞎输入的月份{month}")


# month = randint(1, 13)
# print(f"输入的月份:{month}月")

match month := randint(1, 13):
    case 1 | 3 | 5 | 7 | 8 | 10 | 12:
        print(f"当前月{month}月,有31天")
    case 2:
        print(f"当前月{month}月，有28，29天")
    case 4 | 6 | 9 | 11:
        print(f"当前月{month}月，有30天")
    case _:
        print(f"瞎输入的月份{month}")
